<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<table border=1px style="text-align: center">
<tr><td colspan="8"><a href="{% url 'addbook' %}">增加</a></td></tr>
    <tr>
        <td>编号</td>
        <td>书名</td>
        <td>作者</td>
        <td>价格</td>
        <td colspan="2">操作</td>
    </tr>
    {% for book in books %}
        <tr>
            <td>{{ book.id }}</td>
            <td>{{ book.name }}</td>
            <td>{{ book.author }}</td>
            <td>{{ book.price }}</td>
            <td><a href="{% url 'delete' bookid=book.id %}">删除</a></td>
            <td><a href="{% url 'update' bookid=book.id %}">修改</a></td>
        </tr>

    {% endfor %}

</table>
</body>
</html>